package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-12-20
 */
@TableName("sys_skate")
public class Skate extends Model<Skate> {

    private static final long serialVersionUID = 1L;
    
    @TableId(value="id",type=IdType.AUTO)
	private Long id;
	private String name;
	private Integer type;
	private Integer level;
	private String color;
	private Integer number;
	private BigDecimal price;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date inTime;
	private Date createTime = new Date();
	private String image;//轮滑图片
	private String fileUrl;//附件
    /**
     * 轮滑表
     */
	private String sum;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getSum() {
		return sum;
	}

	public void setSum(String sum) {
		this.sum = sum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Date getInTime() {
		return inTime;
	}

	public void setInTime(Date inTime) {
		this.inTime = inTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	@Override
	public String toString() {
		return "Skate [id=" + id + ", name=" + name + ", type=" + type
				+ ", level=" + level + ", color=" + color + ", number="
				+ number + ", price=" + price + ", inTime=" + inTime
				+ ", createTime=" + createTime + ", image=" + image
				+ ", fileUrl=" + fileUrl + ", sum=" + sum + "]";
	}



}
